home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
023a
/
prop_man.zip
/
TODAY.SAB
< prev
next >
Wrap
Text File
|
1991-07-05
|
2KB
|
58 lines
set pointer #1 eo1 for today sorted by add.code
while eo1 = 0 then
set v code to add.code in #1
set pointer #2 end for cur.mast where add.code = .code
set v code2 to add.code in #2
set v ptd to pdtodate in #2
set v balrent to bal.rent in #2
set v balothe to bal.othe in #2
set v balwat to bal.wate in #2
set v pastdue to past.due in #2
set v secdep to sec.dep in #2
set v how to cach in #1
set v otherpd to other.pd in #1
set v rentpd to rent.pd in #1
set v watpd to wat.paid in #1
set v pastpd to past.pd in #1
set v otherch to other.ch in #1
set v waterch to water.ch in #1
set v secpd to sec.pd in #1
set v pdtot to tot.pd in #1
if pdtot > 0 then
change last.amt to .pdtot in #2
endif
if secpd <> 0 then
change sec.dep to (.secdep + .secpd) in #2
endif
if rentpd <> 0 then
change bal.rent to (.balrent - .rentpd) in #2
change pdtodate to (.ptd + .rentpd) in #2
endif
if otherpd <> 0 then
change bal.othe to (.balothe - .otherpd) in #2
change pdtodate to (.ptd + .otherpd) in #2
endif
if watpd <> 0 then
change bal.wate to (.balwat - .watpd) in #2
endif
if pastpd <> 0 then
change past.due to (.pastdue - .pastpd) in #2
change pdtodate to (.ptd + .pastpd) in #2
endif
if waterch <> 0 then
change bal.wate to (.balwat + .waterch) in #2
endif
if otherch <> 0 then
change bal.othe to (.balothe + .otherch) in #2
endif
if how = "charge" then ; goto ape ; endif
change activity to .#DATE in #2
label ape
next #1 eo1
endwhile
append today to transact where add.code exists
DELETE ROWS FROM today WHERE ADD.CODE EXISTS
del row fro today whe add.code fails
return